﻿<%@ Page Title="Situação da Matrícula" Language="C#" MasterPageFile="~/Site.Master"
    AutoEventWireup="true" CodeBehind="SituacaoMatricula.aspx.cs" Inherits="AcadPosApp.ControlarMatricula.SituacaoMatricula" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <style type="text/css">
        .style1
        {
            width: 265px;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <asp:Panel ID="pnlPesquisa" runat="server" GroupingText="Situação Matrícula">
        <asp:GridView ID="gvwSituacaoMatricula" runat="server" AutoGenerateColumns="False"
            CssClass="mGrid" DataKeyNames="ID_SITUACAO_MATRICULA" EmptyDataText="Dados não localizados..."
            GridLines="Vertical" Width="45%" AllowPaging="True" OnPageIndexChanging="gvwSituacaoMatricula_PageIndexChanging"
            OnRowCommand="gvwSituacaoMatricula_RowCommand" OnRowCreated="gvwSituacaoMatricula_RowCreated"
            OnRowDataBound="gvwSituacaoMatricula_RowDataBound">
            <AlternatingRowStyle BackColor="#D3D3D3" />
            <Columns>
                <asp:TemplateField HeaderText="Excluir" ShowHeader="False">
                    <ItemTemplate>
                        <abbr title="Excluir">
                            <asp:ImageButton ID="Excluir" formnovalidate="formnovalidate" runat="server" CausesValidation="false"
                                OnClientClick="return ShowConfirm('Tem certeza que deseja excluir?', this.ID);"
                                CommandName="Excluir" ImageUrl="~/Imagens/delete.png" Text="Excluir" Width="20px" />
                        </abbr>
                    </ItemTemplate>
                    <HeaderStyle HorizontalAlign="Center" Width="1%" />
                    <ItemStyle HorizontalAlign="Center" Width="1%" />
                </asp:TemplateField>
                <asp:BoundField DataField="DATA_ACAO" HeaderText="Data Ação">
                    <HeaderStyle HorizontalAlign="Center" Width="10%" />
                    <ItemStyle HorizontalAlign="Center" Width="10%" />
                </asp:BoundField>
                <asp:BoundField DataField="SITUACAO" HeaderText="Situação">
                    <ItemStyle Width="10%" HorizontalAlign="Center" />
                </asp:BoundField>
                <asp:BoundField DataField="MOTIVO" HeaderText="Motivo">
                    <ItemStyle HorizontalAlign="Left" Width="75%" />
                </asp:BoundField>
                <asp:BoundField DataField="PROTOCOLO" HeaderText="Protocolo">
                    <HeaderStyle HorizontalAlign="Center" Width="10%" />
                    <ItemStyle HorizontalAlign="Center" Width="10%" />
                </asp:BoundField>
            </Columns>
            <HeaderStyle BackColor="Black" Font-Bold="True" ForeColor="White" />
            <PagerStyle CssClass="pagination" ForeColor="Black" HorizontalAlign="Center" />
            <SelectedRowStyle BackColor="#1E90FF" Font-Bold="True" ForeColor="White" />
            <SortedAscendingCellStyle BackColor="#F1F1F1" />
            <SortedAscendingHeaderStyle BackColor="#808080" />
            <SortedDescendingCellStyle BackColor="#CAC9C9" />
            <SortedDescendingHeaderStyle BackColor="#383838" />
        </asp:GridView>
        <br />
        <div class="legenda">
            <asp:Button ID="btnIncluir" runat="server" Text="Incluir" 
                OnClick="btnIncluir_Click" Width="100px" />
        </div>
        <br />
    </asp:Panel>
    <br />
    <asp:Panel ID="pnlCadastro" runat="server" GroupingText="Cadastro da Situação do Aluno"
        Visible="False">
        <table class="form-inline">
            <tr>
                <td class="style1">
                    Situação
                </td>
            </tr>
            <tr>
                <td class="style1">
                    <asp:DropDownList ID="ddlSituacao" runat="server" Width="150px">
                        <asp:ListItem Value="Cancelada">Cancelada</asp:ListItem>
                        <asp:ListItem Value="Trancada">Trancada</asp:ListItem>
                    </asp:DropDownList>
                    &nbsp;
                </td>
            </tr>
            <tr>
                <td class="style1">
                    Número Protocolo
                </td>
            </tr>
            <tr>
                <td class="style1">
                    <asp:TextBox ID="txtProtocolo" runat="server" MaxLength="10" required="" 
                        Width="150px"></asp:TextBox>
                    &nbsp;
                </td>
            </tr>
            <tr>
                <td class="style1">
                    Motivo
                </td>
            </tr>
            <tr>
                <td class="style1">
                    <asp:TextBox ID="txtMotivo" MaxLength="200" runat="server" required Height="100px"
                        TextMode="MultiLine" Width="95%"></asp:TextBox>
                </td>
            </tr>
        </table>
        <br />
        <div class="legenda">
            <asp:Button ID="btnConfirmar" runat="server" Text="Confirmar" ValidationGroup="cadastro"
                OnClick="btnConfirmar_Click" Width="100px" />
            &nbsp;<asp:Button ID="btnCancelarCadastro" formnovalidate="formnovalidate" runat="server"
                Text="Cancelar" OnClick="btnCancelarCadastro_Click" Width="100px" />
        </div>
        <br />
    </asp:Panel>
    <div class="legenda" style="text-align: center;">
        <asp:Button ID="btnVoltarMatricula" formnovalidate="formnovalidate" runat="server"
            Text="Voltar para Matrícula" Style="text-align: left" OnClick="btnVoltarMatricula_Click" />
    </div>
</asp:Content>
